<?php
namespace florbalMohelnice\Models;

/**
 * Description of SeasonsModel
 *
 * @author Michal Fučík <michal.fuca.fucik@gmail.com>
 * @package florbalMohelnice
 */
class SeasonsModel extends BaseModel{
	
	public function getFluent() {
		return $this->connection->select('*')->from('EligibleSeasons');
	}
	
	public function getSelectSeasons() {
		$res = $this->connection->select('id_season,label')->from('EligibleSeasons')
				->orderBy('label')->desc()
				->execute()->fetchPairs();
		return $res;
	}
}

